package com.enhe.gck.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.kuangkie.carbon.record.Updatable;
import com.kuangkie.carbon.record.annotation.Attribute;
import com.kuangkie.carbon.record.annotation.CarbonRecord;
import com.kuangkie.carbon.record.annotation.RecordCode;
import com.kuangkie.carbon.uid.model.UidManager;
import lombok.Data;

// 班次管理
@CarbonRecord("hwane21232")
@Data
public class Classes implements Updatable {
    @JSONField(name = "唯一编码")
    @RecordCode
    private Long id = UidManager.getLongUID();

    // 名称
    @JSONField(name = "名称")
    @Attribute("hwan21234")
    private String name;

    // 班次时间
    @JSONField(name = "班次时间")
    @Attribute("hwan21235")
    private String time;

    // 备注
    @JSONField(name = "备注")
    @Attribute("hwan21238")
    private String remark;

    // 是否删除
    @JSONField(name = "是否删除")
    @Attribute("hwan21239")
    private Boolean isDelete;

    @Override
    public String getRecordCode() {
        return this.id == null ? null : this.id.toString();
    }
}